package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.TreeMenuNav;
import com.example.entity.TreeRuleMenuChecks;
import com.example.pojo.RuleMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 角色菜单关联表(RuleMenu)表数据库访问层
 *
 * @email: pengyujun53@163.com
 * @author: peng_YuJun
 * @date: 2024/01/17
 * @time: 23:08
 */
 @Repository
public interface RuleMenuMapper extends BaseMapper<RuleMenu>{

    List<TreeRuleMenuChecks> selectTreeChecks(@Param("ruleCode") String ruleCode, @Param("parent") String parent);

    int insertBatch(@Param("objs") List<RuleMenu> ruleMenus);

    List<TreeMenuNav> selectTreeMenuNav(@Param("ruleCode") String ruleCode, @Param("parent") String parent);

}

